<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2019/1/24
 * Time: 8:52
 */
require_once "../config/config.php";
require_once "../model/adminDb.php";
$adminDb=new adminDb();
$id=$_POST['id'];
$data=$adminDb->select_user_id($id);
try {
    $result = $data;

    if ($result) {
        $dat = array(
            'code' => 0,
            'data' => $data,
            'msg' => "查询成功",
        );
        echo json_encode($dat);
    } else {
        $dat = array(
            'code' => 0,
            'data' => $data,
            'msg' => "查询失败",
        );
        echo json_encode($dat);
    }
} catch (Exception $e) {
    echo $e->getMessage();
}

